/**
 * StarInfoNodeColonyBase.java
 *
 * Roslan's Remake of MOO in 3D using Ardor3D
 * (C) 2011 Roslan Amir. All rights reserved.
 */

package com.roslan.games.moo3d.ui.hud;

import com.roslan.games.moo3d.data.Colony;
import com.roslan.games.moo3d.spatial.StarNode;

/**
 * Comments...
 * 
 * @author Roslan Amir
 * @version 1.0 - Aug 9, 2011
 */
public class StarInfoNodeColonyBase extends StarInfoNodeExploredBase {

	/**
	 * Constructor.
	 * 
	 * @param name
	 * @param font
	 */
	public StarInfoNodeColonyBase(String name) {
		super(name);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.roslan.games.moo3d.ui.hud.StarInfoNodeBase#update(com.roslan.games.moo3d.spatial.StarNode)
	 */
	@Override
	protected void update(StarNode starNode) {
		super.update(starNode);

		Colony colony = (Colony) starNode.getStar();
		sb.append("\nPop: ");
		sb.append(colony.population);
		sb.append(", Bases: ");
		sb.append(colony.bases);
		sb.append(", Shield: ");
		sb.append(colony.getShieldClass());
	}

}
